package com.iotechn.unimall.app.api.integralactivity;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.dto.order.OrderRequestDTO;

@HttpOpenApi(group = "integralOrder", description = "积分订单接口")
public interface IntegralOrderService {

    @HttpMethod(description = "积分商品下单")
    public String takeIntegralGoodsOrder(
            @NotNull @HttpParam(name = "orderRequest", type = HttpParamType.COMMON, description = "订单请求实例") OrderRequestDTO orderRequest,
            @NotNull @HttpParam(name = "channel", type = HttpParamType.COMMON, description = "订单提交渠道")String channel,
            @NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "userId")Long userId
    ) throws ServiceException;

    @HttpMethod(description = "积分优惠券下单")
    public String takeIntegralCouponOrder(
            @NotNull @HttpParam(name = "orderRequest", type = HttpParamType.COMMON, description = "订单请求实例") OrderRequestDTO orderRequest,
            @NotNull @HttpParam(name = "channel", type = HttpParamType.COMMON, description = "订单提交渠道")String channel,
            @NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "userId")Long userId
    ) throws ServiceException;


}
